package com.example.hrmsaas.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.hrmsaas.system.entity.Role;
import com.example.hrmsaas.system.entity.User;
import com.example.hrmsaas.system.entity.UserRole;
import com.example.hrmsaas.system.utils.DataGridView;
import com.example.hrmsaas.system.utils.vo.UserVo;

import java.util.List;
import java.util.Set;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 雷哥
 * @since 2021-07-01
 */
public interface IUserService extends IService<User> {

    /**
     * 根据登录名查询用护对象
     */
    public User getUserObjectByUserName(String username);

    DataGridView getUserList(UserVo userVo);


    boolean addUser(User user);

    User getUserByUid(String uid);

    boolean updateUser(User user);

    boolean delUserById(String id);


    List<User> getUserAllList(UserVo userVo);

    boolean setRole(String userId, List<String> roleIds);

    Set<Role> getRolesByUid(String id);
}
